<!DOCTYPE html>  
<html lang="en" ng-app="myApp">  
<head>  
    <meta charset="UTF-8">  
    <title>Document</title>  
   <script src="js/jquery.min.js"></script> 
   <style>
        #box{
            width:300px;
            height:150px;
            margin:100px auto;
            position:relative;
           
        }
        #show{
            width:300px;
            height:150px;
            background:rgba(0,0,0,0.4);
            color:#fff;
            border-radius:10px;
            text-align:center;
            line-height:150px;
            position:absolute;
            left:0;
            top:0;
            display:none;
        }
   </style>
  
</head>  
<body>
    <div id="box"> 
        <!-- <div id="show">注册成功</div> -->

    </div> 
    <input type="button" value="运行" id="btn">
</body> 
    <script>
        $(function(){
            $('input[type=button]').click(function(){
                //delay()延迟动画函数；动画延时多久后执行下一个函数
                //fadeIn() 淡入  fadeOut() 淡出  slideDown() 下滑  slideUp() 上滑 show()  显示 hide() 隐藏
                var div = $("<div>");
                console.log(div)
                div.attr("id","show")
                $('body #box').append(div)
                $('#show').text("注册失败").fadeIn(500).delay(2000).fadeOut(500);

                $.ajax({
                        type:"GET",
                        url:window.baseUrl+"user/channel/query/all/brandid/pc",
                        async:true,
                        data:{
                            userId:433837908
                        },
                        success:function(data){
                            console.log(data)
                            // _this.list0 = data.result;
                            // console.log(_this.list0);                                               
                        },
                        error:function(data){
                            console.log(data)
                        }
                });
                /* $('#show').remove()*/
            })

        })
    </script>
 
  
</html>  